package com.xci.platform.exception;

import lombok.Getter;

import java.util.Map;

/**
 * 验证异常
 */
public class ValidatorException extends RuntimeException {

    @Getter
    private Map<String,String> errorMap;

    public ValidatorException() {
    }

    public ValidatorException(Map<String,String> errorMap) {
        this.errorMap = errorMap;
    }

    public ValidatorException(String message,Map<String,String> errorMap) {
        super(message);
        this.errorMap = errorMap;
    }
}
